import axios from "../config";

export const findOne = data => {
  return axios({
    url: "/record/findOne",
    method: "post",
    data
  })
};
export const deleteRecord = data => {
  return axios({
    url: "/record/delete",
    method: "post",
    data
  })
};
export const deleteRecords = data => {
  return axios({
    url: "/record/deleteMessages",
    method: "post",
    data
  })
}
export const update = data => {
  return axios({
    url: "/record/update",
    method: "post",
    data
  })
}
export const save = data => {
  return axios({
    url: "/record/save",
    method: "post",
    data
  })
}

export const deleteAll = data => {
  return axios({
    url: "/record/deleteAll",
    method: "get",
    data
  });
};

export const findAll = data => {
  return axios({
    url: "/record/findAll",
    method: "get",
    data
  });
};
